package com.nikitova.craps3d {
	import com.foomonger.utils.Later;

	import flash.display.*;
	import flash.events.Event;

	/**
	 * @author schranz
	 */
	public class Main extends Sprite 
	{
		private var _facade    : ApplicationFacade;
		public static var NAME : String = "Main";

		public function Main()
		{

			this.addEventListener(Event.ADDED_TO_STAGE, init);
		}

		private function init(_event : Event) : void
		{
						// Instantiate the ApplicationFacade
			stage.frameRate = 50;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			stage.showDefaultContextMenu = false;
			stage.stageFocusRect = false;			stage.quality = StageQuality.HIGH;			Later.call(startup);
		}
		private function startup() : void		{			_facade = ApplicationFacade.getInstance(NAME, this);			_facade.startup();		}	}
}
